<!DOCTYPE html>
<html>
<head>
    <title>宣传片播放示例</title>
    <style>
        .video-container {
            width: 1000px;
            margin: 20px auto;
            background: #f0f0f0;
            padding: 20px;
            border-radius: 10px;
        }
        video {
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .controls {
            margin-top: 15px;
            display: flex;
            gap: 10px;
        }
        button {
            padding: 8px 15px;
            border: none;
            background: #007bff;
            color: white;
            border-radius: 4px;
            cursor: pointer;
        }
        button:hover {
            background: #0056b3;
        }
    </style>
</head>
<body>
    <div class="video-container">
        <h3>宣传片播放示例</h3>
        <!-- 使用公开测试视频链接 -->
        <video 
            id="promoVideo" 
            width="100%" 
            height="500px" 
            poster="https://picsum.photos/1280/720?random=1"
            playsinline
        >
            <!-- 公开MP4测试视频 -->
<!--            <source src="https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/720/Big_Buck_Bunny_720_10s_1MB.mp4" type="video/mp4">-->
            <source src="./ap.mp4" type="video/mp4">
            您的浏览器不支持视频播放
        </video>

        <div class="controls">
            <button onclick="document.getElementById('promoVideo').play()">播放</button>
            <button onclick="document.getElementById('promoVideo').pause()">暂停</button>
            <button onclick="document.getElementById('promoVideo').volume += 0.1">音量+</button>
            <button onclick="document.getElementById('promoVideo').volume -= 0.1">音量-</button>
            <button onclick="document.getElementById('promoVideo').currentTime += 5">快进5秒</button>
            <button onclick="document.getElementById('promoVideo').currentTime = 0">重新播放</button>
        </div>
    </div>
</body>
</html>